<?php
	function present_html( $str ){
		$str = nl2br($str);
		
		return $str;
	}
?>
<div class="span9">
	<div class="row">
		<!-- widget area, which ones? -->
		<div class="span3">
			<div class="row">
				<?php 
				foreach($widgets as $w) {
					print $w;
				}
			?>
			</div>
		</div>
		<div class="span6">
			<div class="box">
				<strong>Min orderhistorik</strong>
				<br/>
				<br/>
				<table class="orders" border="0" width="100%" cellpadding="0" cellspacing="0">
					<thead><tr><td>Summering</td><td>Datum</td><td>Status</td></tr></thead>
					<tbody>
					<?php foreach($orders as $order) : 
						switch($order->status){
							case 0 : $status = "Mottagen"; break;
							case 1 : $status = "Packas"; break;
							case 2 : $status = "Levererad"; break;
						}
					?>
					<tr>
						<td><?php echo $order->order; ?></td>
						<td><?php echo $order->datum; ?></td>
						<td><?php echo $status; ?></td>
					</tr>
					<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>	